<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_EN" lang="en_En">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script src="<?php echo base_url()?>js/jquery-1.6.4.min.js" type="text/javascript"></script>
		<script src="<?php echo base_url()?>js/equalizer.js" type="text/javascript"></script>
		<link rel="stylesheet" href="<?php echo base_url()?>css/style.css" type="text/css"/>
		<title>Login</title>
		<base href="<?php echo base_url()?>" />
	</head>
	<body id="login">
		<div id="wrapper">
			<div id="header-wrapper">
				<?php include_once('include/header.php') ?>
			</div>
			<div id="content">
				<div id="login-form">
					<div id="login-form-top">
						<span class="login-header"></span>
					</div>
					<div id="forgotpass-form-content">
					<?php if(isset($success) && $success == true){
					?>
						<p>Your new password has been sent to your email. Please check then <a href="<?php echo base_url()?>">click here</a> to login!</p>
					<?php	
					}else{
					?>
						<p>Please enter your email then press Submit to get new password</p>
						<div class="create-client-form-error">
							<?php echo validation_errors(); ?>
							<?php
								if(isset($errorArray)){
									foreach ($errorArray as $value){
							?>
								<p><?php echo $value ?></p>
							<?php
									}
								}
							?>
						</div>
						<?php echo form_open('forgotpass'); ?>
							<div class="login-input">
								<input class="forget-password-email" type="text" name="email" value="<?php  echo set_value('email')?>" />
							</div>
							
							<div class="bottom-area">
								<div class="forgot-password-link">
									
								</div>
								<div class="login-button">
									<input class="forget-password-submit" type="submit" value="Submit" />
								</div>
								<div class="clear"></div>
							</div>
							<div class="clear"></div>
						</form>
					<?php
					}
					?>
					</div>
					<div id="login-form-bottom">
					</div>
				</div>
			</div>
			<div id="footer-wrapper">
				<?php include_once('include/footer.php') ?>
			</div>
		</div>
	</body>
</html>